
#include "stdafx.h"
#include "VirtualPriceFall.h"
#include "SKEYBid.h"
#include "UserMessage.h"

CVirtualPriceFall::CVirtualPriceFall(CSKEYBid * owner) :CDataPriceFall(owner)
{
}

CVirtualPriceFall::~CVirtualPriceFall()
{
}

BOOL CVirtualPriceFall::OnInitDialog()
{
	InitData();
	return TRUE;
}

void CVirtualPriceFall::setCtrlValue()
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	CVARBinary bin; if (!m_Parm.writeTo(bin)) return;
	main.sendMainCopyData(0, CPDT_PrcFall_setCtrlValue, bin);
}

void CVirtualPriceFall::setCtrlPriceFallclear()
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.SendMainMessage(WM_PrcFall_setCtrlPriceFallclear, m_policy);
}

void CVirtualPriceFall::setCtrlPriceFallset()
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.SendMainMessage(WM_PrcFall_setCtrlPriceFallset, m_policy);
}

